import java.util.Random;
import java.util.Scanner;

public class 石头剪刀布 {
    public static void main(String[] args) {
        int j=1;
        for(j=1;j<=5;j++) {
            System.out.println("------第"+j+"局-------");
            int i = new Random().nextInt(3);
            String s = getComputer(i);

            Scanner sc = new Scanner(System.in);
            String guess = sc.next();
            win(s, guess);
        }
    }
    public static String getComputer(int i)
    {
        String[] sc={"石头","剪刀","布"};
       String getComputerGuess=sc[i];
       return getComputerGuess;
    }

public static void win(String ss,String guess )
{
    if(ss.equals(guess))
    {
        System.out.println("你出："+guess+",电脑出："+ss+"。平了");
    }
    else if(ss.equals("石头"))
    {
        if(guess.equals("剪刀"))
        {
            System.out.println("你出："+guess+",电脑出："+ss+"。You Loss！");
        }
        else{
            System.out.println("你出："+guess+",电脑出："+ss+"。You Win！");
       }
    }
    else if(ss.equals("剪刀"))
    {
        if(guess.equals("石头"))
        {
            System.out.println("你出："+guess+",电脑出："+ss+".You Win!");
        }
        else
        {
            System.out.println("你出："+guess+",电脑出："+ss+".You Loss!");
        }
    }
    else if(ss.equals("布"))
    {
        if(guess.equals("石头"))
        {
            System.out.println("你出："+guess+",电脑出："+ss+".You Loss!");
        }
        else
        {
            System.out.println("你出："+guess+",电脑出："+ss+".You Win!");
        }
    }

}

}
